<?php

include_once dirname(__FILE__) . '/../class/_core.php';
include_once dirname(__FILE__) . '/../class/Users.php';
include_once dirname(__FILE__) . '/../class/department.php';

$row = User::get_a_page_users(0);

//如果为车间管理员 查询车间

//$department = new department();
//for($i=0;$row[$i]['user_id']!=null;$i++)
//{
//    if($row[$i]['type_id']=4){
//        
//            $row[$i]['department_id']= department::getUserDepartment($row[$i]['user_id']);
//            $department->department_view_one(intval($row[$i]['department_id']));
//            $row[$i]['department_name'] = $department->department_name;
//    }     
//} 查询车间名称后速度太慢 待优化

$Smarty->assign('operator_management', $row);
$Smarty->display('operator_management.tpl');
